package com.he.DesignPatterns.strategy.demo1;

public class UserCash {

    public static void main(String[] args) {
        CashSuper cs = CashFactory.createCashAdaptor("正常");
        double v = cs.acceptCash(100);
        System.out.println("v = " + v);

        CashSuper cashSuper = CashFactory.createCashAdaptor("八折");
        System.out.println("cashSuper.acceptCash(100) = " + cashSuper.acceptCash(100));
    }
}
